package com.hotel.service.impl;

import com.hotel.domain.VipUser;
import com.hotel.mapper.VipUserMapper;
import com.hotel.service.VipUserService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName: VipUserServiceImpl
 *
 * @author 落叶剂的秋
 * Description:
 * date: 2020/12/8 22:20
 */
@Service
public class VipUserServiceImpl implements VipUserService {

    @Autowired
    VipUserMapper vipUserMapper;


    @Override
    public List<VipUser> selectAllVipUser() {
        return vipUserMapper.selectAllVipUser();
    }

    @Override
    public int addVipUser(@Param("vipUser") VipUser vipUser) {
        return vipUserMapper.addVipUser(vipUser);
    }

    @Override
    public int modifyVipUser(VipUser vipUser) {
        return vipUserMapper.modifyVipUser(vipUser);
    }

    @Override
    public VipUser selectByVid(int vid) {
        return vipUserMapper.selectByVid(vid);
    }


}
